package cn.ftp;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import sun.net.ftp.*;

public class Driver {
	public static void main(String[] args) {
		
        if (args == null || args.length == 0) {
//        	FTPServer server = new FTPServer(null);
        	FTPClient client = new FTPClient();
//        	System.exit(0);
        }
        
        if (args.length > 1) {
        	int port = Integer.parseInt(args[1]);
        	MyUtil.defaultPort = port;
        	if (args[0].equalsIgnoreCase("server")) {
            	FTPServer server = new FTPServer(null);
            } else if (args[0].equalsIgnoreCase("client")) {
            	FTPClient client = new FTPClient();
            } else {
            	System.exit(0);
            }
        }
	}
}
